ci(versioning): policy-as-code, tag-gate und retention kanonisch umsetzen#57
Merged
tomtastisch merged 8 commits intomainfrom Feb 14, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Diese PR implementiert die in den Issues #52/#53/#54/#56 beschriebenen Governance-/Versioning-Bausteine als Policy-as-Code (RaC) inkl. PR-Gate, Tag-Gate, Release-Härtung sowie Retention-Automation und migriert die Versioning-Labels auf das kanonische Präfix versioning:*.
Changes:
- Einführung von RaC (
tools/versioning/rac-policy.json) und PR-Checkversioning-policyvia Node-Skript + Evidence-Artefakte. - Migration der Versioning-Labels von
version:*→versioning:*inkl. Anpassung von Tooling/Testcases und Issue-Labeler. - Integration eines Tag-Gates in den Release-Workflow sowie Hinzufügen eines Retention-Workflows + Retention-Skript für GH Releases / NuGet / GH Packages.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/versioning/validate-label-decision.js | Prüft Auto-Label-Decision jetzt gegen versioning:* statt version:*. |
| tools/versioning/testcases/01-docs-only.json | Testcase erwartet versioning:* Label. |
| tools/versioning/testcases/02-ci-only.json | Testcase erwartet versioning:* Label. |
| tools/versioning/testcases/03-src-tests-docs.json | Testcase erwartet versioning:* Label. |
| tools/versioning/testcases/04-breaking.json | Testcase erwartet versioning:* Label. |
| tools/versioning/testcases/05-scope-switch.json | Migration bestehender/expektierter Versioning-Labels auf versioning:*. |
| tools/versioning/testcases/06-guard-fallback.json | Testcase erwartet versioning:none. |
| tools/versioning/test-tag-gate.js | Neuer Node-Testtreiber für tag-gate.js. |
| tools/versioning/test-evaluate-versioning-policy.js | Neuer Node-Testtreiber für evaluate-versioning-policy.js. |
| tools/versioning/tag-gate.js | Neues Tag-Gate (RC-Kollision/Order-Regeln) + Evidence-Artefakte. |
| tools/versioning/rac-policy.json | Neue kanonische RaC-Policy (Tags, Labels, Classification, Retention-Parameter). |
| tools/versioning/labels.json | Fügt versioning:* Labels hinzu und markiert version:* als Legacy (Migration). |
| tools/versioning/label-schema.json | Erlaubte Labels auf versioning:* umgestellt. |
| tools/versioning/evaluate-versioning-policy.js | Neues Policy-Evaluationsskript (Labels + Changed-Files Klassifikation) + Evidence-Artefakte. |
| tools/versioning/compute-pr-labels.js | Lädt Versioning-Label-Mapping aus RaC statt Hardcoding (versioning:*). |
| tools/ci/release/retention_apply.sh | Neues Retention-Skript (GH Releases delete, NuGet unlist, GH Packages delete) + Evidence. |
| .github/workflows/version-policy.yml | PR-Workflow auf versioning-policy (RaC-Eval) umgestellt + Artefakt-Upload. |
| .github/workflows/release.yml | Release-Workflow um Tag-Gate-Job und GH-Release Handling (stable/rc prerelease) erweitert. |
| .github/workflows/release-retention.yml | Neuer Workflow: periodische/after-release Retention via retention_apply.sh. |
| .github/workflows/issue-labeler.yml | Issue-Labeler migriert auf versioning:* inkl. Default versioning:none. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 24 out of 24 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ziel & Scope
Umgesetzte Aufgaben (abhaken)
tools/versioning/rac-policy.jsonversioning-policyimplementiert (fail-closed)version:*aufversioning:*migriertartifacts/governance/*)versioning-policywartet deterministisch auf genau einversioning:*Nachbesserungen aus Review (iterativ)
versioning-policygegen Labeling-Race gehaertetSecurity- und Merge-Gates
codex/ci/...,ci(...): ...).security/code-scanning/toolsmuss bei Merge0 offene Alertshaben.Evidence (auditierbar)
node tools/versioning/test-compute-pr-labels.jsnode tools/versioning/test-evaluate-versioning-policy.jsnode tools/versioning/test-tag-gate.jsbash -n tools/ci/release/retention_apply.shjq length artifacts/governance/labels.jsonjq length artifacts/governance/rulesets.jsonartifacts/policy/decision.json,artifacts/policy/summary.tsv,artifacts/policy/actions.logartifacts/tag-gate/decision.json,artifacts/tag-gate/summary.tsv,artifacts/tag-gate/actions.logartifacts/retention/decision.json,artifacts/retention/summary.tsv,artifacts/retention/actions.logartifacts/governance/labels.json,artifacts/governance/rulesets.json,artifacts/governance/snapshot.mdDoD (mindestens 2 pro Punkt)
versioning:*failt deterministischversioning:nonemit API-relevanten Änderungen failtversioning:*wird gesetztrac-policy.json)ghexportiertCloses #52
Closes #53
Closes #54
Closes #56